﻿namespace Rmq.Center
{
    public class OrderPayingTimeoutMsg
    {
        /// <summary>
        /// 订单类型
        /// </summary>
        public OrderType OrderType { get; set; }

        /// <summary>
        /// 订单Id
        /// </summary>
        public int OrderId { get; set; }
    }

    public class OrderPayingTimeoutProducer : BaseProducer<OrderPayingTimeoutMsg>
    {
        public OrderPayingTimeoutProducer()
            : base(Const.RoutingKeys.OrderPayingTimeout)
        { }
    }

    public class OrderPayingTimeoutConsumer : BaseConsumer<OrderPayingTimeoutMsg>
    {
        public OrderPayingTimeoutConsumer()
            : base(Const.QueueNames.OrderPayingTimeout, Const.RoutingKeys.OrderPayingTimeout)
        { }
    }
}